package com.yenlien.traceyun.control.dao;

import com.yenlien.traceyun.control.entity.Plant;
import com.yenlien.traceyun.webase.dao.BaseJpaDao;
import org.springframework.data.jpa.repository.Query;

public interface PlantDao extends BaseJpaDao<Plant> {


    @Query(value = "SELECT * FROM t_plant WHERE batch = ?1", nativeQuery = true)
    String findByBatch(String batch);


}
